<!DOCTYPE HTML>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="author" content="">

<title>..:: Code Complex ::.. Dev</title>

<link rel="shortcut icon" href="/favicon.ico" />
<link rel="stylesheet" href="/css/layout.css" type="text/css" />
<link rel="stylesheet" href="/css/menu.css" type="text/css" />
<link rel="stylesheet" href="/css/formatting.css" type="text/css" />
<link rel="stylesheet" href="/css/jquerycssmenu.css" type="text/css" />

<!--[if lte IE 7]>
            <style type="text/css">
                html .jquerycssmenu{height: 1%;} /*Holly Hack for IE7 and below*/
            </style>
        <![endif]-->

<script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/js/jquerycssmenu.js"></script>
</head>

<body>
<div id="container"><!-- Header title bar -->
<div id="header"><span id="pageTitle">Code Complex - Dev</span>
<div id="logInOut">
                    <?php
                    if($this->account)
                    {
                        ?>
                    <a href="/logout"> <span id="btnLogout"> </span> </a>
                    <?php
                    }
                    else
                    {
                        ?>
                    <a href="/login"> <span id="btnLogin"> </span> </a>
                    <?php
                    }
                    ?>
                </div>
</div>

<!-- Menu -->
            <?php
            if($this->account)
            {
                ?>
                <div id="menu" class="">
<div id="navigationMenu" class="jquerycssmenu">
                        <?=$this->navigation()->menu()->setUlClass('');?>
                    </div>
<div id="search"><input type="text" id="search_box" /></div>
</div>
            
				<?php
                if($this->navigation()
                    ->breadcrumbs()
                    ->setMinDepth(0)
                    ->setLinkLast(true)
                    ->setSeparator(" : ") != '')
                {
                    ?>
                <div id="nav">
                    <?=$this->navigation()->breadcrumbs()->setMinDepth(0)->setLinkLast(true)->setSeparator(" : ");?>
                </div>
                
                <?php
                }
                ?>
            <?php
            }
            ?>
            
            <!-- Main content area -->
<div id="main">
<div id="messages"><?php
$this->messenger();
?></div>
<!-- 
            	<?php
            if(count($this->flashMessages))
            {
                ?>
            	<div id="flashMessages">
            		<table>
                		<tr>
                			<td style="vertical-align: middle;"><img src="/icon/32x32/comments.png" /></td>
                			<td style="vertical-align: middle;">
                				<ul>
                		        <?php
                foreach($this->flashMessages as $message)
                {
                    ?>
                		        	<li><?php
                    echo $this->escape($message);
                    ?></li>
            		        	<?php
                }
                ?>
            		        	</ul>
                			</td>
            			</tr>
        			</table>
            	</div>
                <?php
            }
            ?>
-->            
                <?php
                echo $this->layout()->content;
                ?>
            </div>

<div id="footer">
<div style="float: left;"><!--Logged in as: {$loggedAs}-->
                        <?php
                        if($this->account)
                        {
                            ?>
                            Logged in as: (UID<?=$this->account->getId()?>) <?=$this->account->getUsername()?> - <?=$this->account->getProvider()->getName()?>
                        <?php
                        }
                        ?>
                </div>
<div style="float: right;">Developed by Steven Inskip (Code-Complex)</div>
</div>
</div>
<!--! end of #container -->

<div id="searchResult">
<div class="right"><img src="/icon/16x16/close.png" id="closeImg"
	alt="Close" /></div>
<div id="innerDiv">&nbsp;</div>
</div>

<!-- Javascript at the bottom for fast page loading -->
<script type="text/javascript">
            $("#searchResult").hide();
        </script>
</body>
</html>
